package com.kehutong.crm.message.entity;

import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.util.IDType;
import com.kehutong.common.enums.TemplateType;
import com.kehutong.common.enums.MessageBusinessEnum;
import com.kehutong.common.enums.MessageBusinessStateEnum;

@Table(value="t_message_template_app", comment="应用模板消息", idType = IDType.TIMESTAMP)
public class MessageTemplateApp extends Entity {

    private static final long serialVersionUID = 5350407102718898789L;

    protected MessageTemplateApp(String id) {
        super(id);
    }

    @Column(comment = "业务模板类型")
    private MessageBusinessEnum businessType;

    @Column(comment = "模板类型")
    private TemplateType templateType;

    @Column(comment = "标签说明", dbType = "TEXT", length = 65535)
    private String tagArray;

    @Column(comment = "站内信标题")
    private String title;

    @Column(comment = "内容模板", length = 256)
    private String content;

    // @Column(comment = "业务状态")
    // private MessageBusinessStateEnum businessStateEnum;

    @Column(comment="逻辑删除")
    private boolean deleted;

    public MessageBusinessEnum getBusinessType() {
        return businessType;
    }

    public void setBusinessType(MessageBusinessEnum businessType) {
        this.businessType = businessType;
    }

    public TemplateType getTemplateType() {
        return templateType;
    }

    public void setTemplateType(TemplateType templateType) {
        this.templateType = templateType;
    }

    public String getTagArray() {
        return tagArray;
    }

    public void setTagArray(String tagArray) {
        this.tagArray = tagArray;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    // public MessageBusinessStateEnum getBusinessStateEnum() {
    //     return businessStateEnum;
    // }
    //
    // public void setBusinessStateEnum(MessageBusinessStateEnum businessStateEnum) {
    //     this.businessStateEnum = businessStateEnum;
    // }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }
}
